package com.qf.base.domain;

import com.qf.common.annotation.Excel;
import com.qf.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * --- ONE PIECE ---
 *
 * @author yangjiangcheng
 * @date 2025/9/3
 * @desc
 */
@Data
public class BaseVehicle extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long vehicleId;

    /**
     * 车主
     */
    @Excel(name = "车主")
    private String owner;

    /**
     * 车牌号
     */
    @Excel(name = "车牌号")
    private String licensePlate;

    /**
     * 车型
     */
    @Excel(name = "车型")
    private String vehicleType;

    /**
     * 车长
     */
    @Excel(name = "车长")
    private String vehicleLength;

    /**
     * 核定载客
     */
    @Excel(name = "核定载客")
    private Long approvedPassenger;

    /**
     * 核载体积(m³)
     */
    @Excel(name = "核载体积(m³)")
    private BigDecimal approvedVolume;

    /**
     * 核载重量(kg)
     */
    @Excel(name = "核载重量(kg)")
    private BigDecimal approvedWeight;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private String status;

    /**
     * 承运商ID
     */
    @Excel(name = "承运商ID")
    private Long carrierId;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("vehicleId", getVehicleId())
                .append("owner", getOwner())
                .append("licensePlate", getLicensePlate())
                .append("vehicleType", getVehicleType())
                .append("vehicleLength", getVehicleLength())
                .append("approvedPassenger", getApprovedPassenger())
                .append("approvedVolume", getApprovedVolume())
                .append("approvedWeight", getApprovedWeight())
                .append("status", getStatus())
                .append("carrierId", getCarrierId())
                .toString();
    }
}
